<template>
  <div class="listBox">
    <img :src="initVal.img" alt="" />
    <div class="list">
      <itemBox v-for="val in initVal.list" :defaultValue="val" :key="val.id"></itemBox>
    </div>
  </div>
</template>
<script>
import itemBox from "./item.vue";
export default {
  components: { itemBox },
  props: {
    initVal: {
      type: Object,
      default: () => {},
    },
  },
  created(){
    console.log(this.initVal,'pppp1')
  }
};
</script>

<style lang="scss" scoped>
.listBox {
  width: 80vw;
  display: flex;
  height: 688px;
  margin: 15px auto;
  img {
    width: 22vw;
    height: 100%;
  }
  .list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 15px;
  }
}
</style>
